package br.org.nomoney.vink.util.serialize;

import java.io.IOException;

public interface ObjectToFromBytesConverter {

	/**
	 * Get the bytes from a object.
	 * 
	 * @param obj
	 * @return byte[]
	 * @throws IOException
	 */
	public byte[] fromObjectToBytes(Object obj) throws IOException;

	/**
	 * Creates an object from a byte array.
	 * 
	 * @param inContent
	 * @return
	 * @throws IOException
	 * @throws ClassNotFoundException
	 */
	public Object fromBytesToObject(byte[] inContent)
			throws IOException, ClassNotFoundException;
}
